package com.advertisementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("ad_payment")
public class Payment {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long negotiationId;    // 关联的协商ID
    private Long advertiserId;     // 广告主ID
    private Long deviceOwnerId;    // 设备主ID
    private Long deviceId;
    private BigDecimal amount;     // 支付金额
    private String orderNo;        // 支付订单号
    private Integer status;        // 状态：0-待支付 1-支付成功 2-支付失败 3-已退款
    private String payMethod;      // 支付方式：ALIPAY-支付宝 WECHAT-微信
    private String transactionId;  // 第三方支付交易号
    private LocalDateTime payTime; // 支付时间
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
}